package FactoryPattern.b;

public class Test {
    public static void main(String[] args) {
        Factory factoryA = new ProductAFactory();
        Factory factoryB = new ProductBFactory();
        Product productA = factoryA.creatProduct();
        Product productB = factoryB.creatProduct();
        productA.use();
        productB.use();
    }
}
